package com.ruoyi.launch.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 智能柜分屏广告对象 e_advertisement
 *
 * @author ruoyi
 * @date 2024-11-27
 */
public class EAdvertisement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 广告标题 */
    @Excel(name = "广告标题")
    private String title;

    /** 时长/s */
    @Excel(name = "时长/s")
    private Integer duration;

    /** 推送时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @Excel(name = "推送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date pushTime;

    /** 失效日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @Excel(name = "失效日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expirationDate;

    /** 创建日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creationDate;

    /** 状态：生效中，已下架，已过期 */
    @Excel(name = "状态：生效中，已下架，已过期")
    private Integer status;

    /** 广告视频 */
    @Excel(name = "广告视频")
    private String video;

    /** 推送方式 */
    @Excel(name = "推送方式")
    private Integer pushMethod;

    /** 标题类型 */
    @Excel(name = "标题类型")
    private Integer type;

    /** 视频名称 */
    @Excel(name = "视频名称")
    private String filename;

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDuration(Integer duration)
    {
        this.duration = duration;
    }

    public Integer getDuration()
    {
        return duration;
    }
    public void setPushTime(Date pushTime)
    {
        this.pushTime = pushTime;
    }

    public Date getPushTime()
    {
        return pushTime;
    }
    public void setExpirationDate(Date expirationDate)
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate()
    {
        return expirationDate;
    }
    public void setCreationDate(Date creationDate)
    {
        this.creationDate = creationDate;
    }

    public Date getCreationDate()
    {
        return creationDate;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setVideo(String video)
    {
        this.video = video;
    }

    public String getVideo()
    {
        return video;
    }
    public void setPushMethod(Integer pushMethod)
    {
        this.pushMethod = pushMethod;
    }

    public Integer getPushMethod()
    {
        return pushMethod;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("duration", getDuration())
            .append("pushTime", getPushTime())
            .append("expirationDate", getExpirationDate())
            .append("creationDate", getCreationDate())
            .append("status", getStatus())
            .append("video", getVideo())
            .append("pushMethod", getPushMethod())
            .append("type", getType())
            .append("filename", getFilename())
            .toString();
    }
}
